package com.ruoyi.hospital.service.operation.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.operation.OperationRequireMapper;
import com.ruoyi.hospital.domain.operation.OperationRequire;
import com.ruoyi.hospital.service.operation.IOperationRequireService;

/**
 * app首页中的图标跳转Service业务层处理
 * 
 * @author wendao
 * @date 2024-12-27
 */
@Service
public class OperationRequireServiceImpl implements IOperationRequireService 
{
    @Autowired
    private OperationRequireMapper operationRequireMapper;

    /**
     * 查询app首页中的图标跳转
     * 
     * @param id app首页中的图标跳转主键
     * @return app首页中的图标跳转
     */
    @Override
    public OperationRequire selectOperationRequireById(Integer id)
    {
        return operationRequireMapper.selectOperationRequireById(id);
    }

    /**
     * 查询app首页中的图标跳转列表
     * 
     * @param operationRequire app首页中的图标跳转
     * @return app首页中的图标跳转
     */
    @Override
    public List<OperationRequire> selectOperationRequireList(OperationRequire operationRequire)
    {
        return operationRequireMapper.selectOperationRequireList(operationRequire);
    }

    /**
     * 新增app首页中的图标跳转
     * 
     * @param operationRequire app首页中的图标跳转
     * @return 结果
     */
    @Override
    public int insertOperationRequire(OperationRequire operationRequire)
    {
        operationRequire.setCreateTime(DateUtils.getNowTimeSecond());
        return operationRequireMapper.insertOperationRequire(operationRequire);
    }

    /**
     * 修改app首页中的图标跳转
     * 
     * @param operationRequire app首页中的图标跳转
     * @return 结果
     */
    @Override
    public int updateOperationRequire(OperationRequire operationRequire)
    {
        operationRequire.setUpdateTime(DateUtils.getNowTimeSecond());
        return operationRequireMapper.updateOperationRequire(operationRequire);
    }

    /**
     * 批量删除app首页中的图标跳转
     * 
     * @param ids 需要删除的app首页中的图标跳转主键
     * @return 结果
     */
    @Override
    public int deleteOperationRequireByIds(Integer[] ids)
    {
        return operationRequireMapper.deleteOperationRequireByIds(ids);
    }

    /**
     * 删除app首页中的图标跳转信息
     * 
     * @param id app首页中的图标跳转主键
     * @return 结果
     */
    @Override
    public int deleteOperationRequireById(Integer id)
    {
        return operationRequireMapper.deleteOperationRequireById(id);
    }
}
